<m-data-table *ngIf="result$ | async as result" [data]="result.list" [result]="result">
  <ng-container mDataTableColumn header="日志类型">
    <ng-template let-type="type_desc">
      <td>{{ type }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="区域名称">
    <ng-template let-name="area_name">
      <td>{{ name }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="涉及人数">
    <ng-template let-human_num="human_num">
      <td>{{ human_num }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="涉及终端数">
    <ng-template let-pc_num="pc_num">
      <td>{{ pc_num }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="涉及软件数">
    <ng-template let-software_num="software_num">
      <td>{{ software_num }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="是否附加脚本">
    <ng-template let-has="has_shell">
      <td>{{ has ? '是' : '否' }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="编辑人">
    <ng-template let-operator="operator_name">
      <td>{{ operator }}</td>
    </ng-template>
  </ng-container>
  <ng-container mDataTableColumn header="编辑时间">
    <ng-template let-created_at="created_at">
      <td>{{ created_at | date }}</td>
    </ng-template>
  </ng-container>

  <m-pagination [length]="result.total" [pageSize]="result.pageSize" [result]="result">
  </m-pagination>
</m-data-table>
